package com.chat.service;

import com.chat.Local;
import com.chat.common.Message;
import com.chat.common.MessageType;
import com.chat.common.User;

import java.io.IOException;
import java.io.ObjectOutputStream;
import java.net.Socket;
/*
  获取当前用户的所有信息
 */
public class GetUserMessage {
     public static void getusermessage(){
          Message message=new Message();
          message.setMesType(MessageType.MESSAGE_USER_ALL);
          message.setData(Local.user);
          ClientConnectServerThread clientConnectServerThread=ManageClientConnectServerThread.getClientConnectServerThread(Local.user.getUsername());
          clientConnectServerThread.send(message);
     }
}
